define(["jquery","bbcare","comm/form/form.comm"],function($,$bb,$comm){
	var quest = {};

	/**
	 * 数据处理(若不需要数据处理，可以不写)
	 */
    quest.formatData = function(obj){
    	if( !obj.id ) obj.id = "anchor_" + $bb.simple.random(); // 为了随访悬浮nav锚点
		return obj;
	}

	/**
	 * tpl模板
	 */
	quest.tpl = function(arr){
		var h = $comm.judgeLoadTpl(arr);
		return 	'<script id="tpl_question_group" type="text/html">'+
				'	{{if showLabel}}'+
				'		<div id="{{id}}" {{if relationId}}relationId="{{relationId}}"{{/if}} class="qaCard-subtit col-sm-12 col-md-12 {{if showIcon}} has-icon{{/if}}">'+
				'			<div>'+
				'       		{{if showIcon}}<i class="fa fa-file-text"></i>{{/if}}'+
				'				<span>{{label}}</span>'+
				'			</div>'+
				'		</div>'+
				'	{{/if}}'+
				'	{{each children as value i}}'+ h +'{{/each}}'+
				'</script>';
	}

	return quest;
});